﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;

namespace Auction
{
    public class AuthorizePage
    {
        Dictionary<String, List<String>> value;

        public void Add(String key, String arr)
        {

            if (this.value == null)
            {
                this.value = new Dictionary<string,List<string>>();

            }
            if (!this.value.ContainsKey(key))
            {
                this.value.Add(key,new List<String>());
            }
            List<String> list = this.value[key];
            list.Add(arr.Trim());

        }

        public Object[] Get(String key)
        {
            if (this.value != null && this.value.ContainsKey(key))
            {
                return (Object[])this.value[key].ToArray();
            }
            return null;
        }

    }
}
